<?php

namespace Apps\Common\Models;
/**
 * 首页推荐问答Model
 * @author     chenxiaolin
 * @date        2016年1月19日
 * @version     2.0.0
 * @copyright   Copyright 2016 meelier.com
 */
class CosPointquestion extends \PhalconPlus\Database\Model{
    public $id;
    public $q_id;
    public $addr;
    public $sort;
    public $img_url;
    public $title;
    public function getSource()
    {
        return 'cos_point_question';
    }

    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

    public function columnMap()
    {
        return array(
            'id' => 'id',
            'q_id' => 'q_id',
            'img_url' => 'img_url',
        	'addr'=>'addr',
            'sort' => 'sort',
        	'title' => 'title'
        );
    }
    public function defaultColumns()
    {
    	return [
    	'id',
    	];
    }

}